<?php
App::import('Model', 'AppModel');

class Divisi extends AppModel {
	public $name = 'Divisi';
	public $useTable = 'divisi';
	public $displayField = 'nama';

	public $hasMany = array(
		'Karyawan' => array(
			'className' => 'Karyawan',
			'foreignKey' => 'divisi_id',
			'dependent' => false
		)
	);

}